<!DOCTYPE html> 
<html lang="en"> 
<head> 
<meta charset="UTF-8"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
<title>示例 6 中分别使用 ES5 与 ES6 两种方式为变量赋值</title> 
<script> 
 // ES5 语法对多个变量赋值 
 let x = 1; 
 let y = 2; 
 let z = 3; 
 //在 ES6 的语法中的数组解构赋值 
 let [x1, y1, z1] = [1, 2, 3]; 
 console.log(x, xl); //1,1 
 console.log(y, y1); //2,2 
  console.log(z, zl); //3,3 
  </script> 
 </head> 
 <body></body> 
 </html> 